﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Wiki.AllContributions" %>
<asp:Literal ID="lLCount" Text="5" runat="server" Visible="false" />
<asp:Literal ID="lMCount" Text="5" runat="server" Visible="false" />
<asp:Literal ID="lDOrder" Text="[datetime]" runat="server" Visible="false" />
<div class="common">
<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("WK026")%></h1>
							</div>
							<div class="submenuN_button"><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="/knowledge/edit.htm" class="Naddbtn btnspec" style="text-decoration:none"><%}else{ %><a href="#" onclick="NotAffirm()" class="Naddbtn btnspec" style="text-decoration:none"><%} %><span><%=GetText("WK004")%></span></a></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Right">
						<div class="Center9001Content">
							<div class="knowedge_area">
								<div class="margin5" style="text-align: right">
									<%=RecordCount%>
									<%=GetText("WK017")%>:
									<%if(Order.ToLower()=="[datetime]") {%>
									<strong><%=GetText("C2002")%></strong>
									<%}else{ %>
									<a href="/knowledge/allContributions-1-[datetime].htm"><%=GetText("C2002")%></a>
									<%} %>
									|
									<%if(Order.ToLower()=="[views]") {%>
									<strong><%=GetText("C2011")%></strong>
									<%}else{ %>
									<a href="/knowledge/allContributions-1-[views].htm"><%=GetText("C2011")%></a>
									<%} %>
									|
									<%if(Order.ToLower()=="[rate]") {%>
									<strong><%=GetText("WK015")%></strong>
									<%}else{ %>
									<a href="/knowledge/allContributions-1-[rate].htm"><%=GetText("WK015")%></a>
									<%} %>
								</div>
								<div>
									<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color: #eee">
										<tr>
											<td style="padding: 5px 0px 5px 5px"><strong><%=GetText("WK018")%></strong></td>
											<td style="padding: 5px 0px 5px 0px" width="80" align="center"><strong><%=GetText("WK019")%></strong></td>
											<td style="padding: 5px 0px 5px 0px" width="80" align="center"><strong><%=GetText("WK020")%></strong></td>
										</tr>
									</table>
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<asp:Repeater ID="rptM" runat="server">
											<ItemTemplate>
												<tr>
													<td style="border-bottom: 1px #eee solid; padding: 5px 0px 5px 5px"><span class="text14"><a href='/knowledge/contribution-<%#HttpUtility.UrlEncode(Eval("Name").ToString())%>.htm'><%#Lx.Web.Common.UI.Globals.GetString(Eval("Title").ToString(),80)%></a></span> <span class="grey10"><%#FormatDiffDate(GetText("C0036"), Eval("DiffDate").ToString())%></span>
													</td>
													<td style="border-bottom: 1px #eee solid; padding: 5px 0px 5px 0px" width="80" align="center"><%#Eval("Views") %></td>
													<td style="border-bottom: 1px #eee solid; padding: 5px 0px 5px 0px" width="80" align="center"><%#((Decimal)Eval("Rate")).ToString("N1")%></td>
												</tr>
											</ItemTemplate>
										</asp:Repeater>
										<%if (rptM.Items.Count == 0)
			{%>
										<tr>
											<td><%=GetText("WK005")%></td>
										</tr>
										<%} %>
									</table>
								</div>
								<div class="page_num">
									<%=CreatePageNav(RecordCount, int.Parse(lMCount.Text), PageIndex, 
									"",string.Format("<span class='page_none grey10'><a href='/knowledge/allContributions-$I$-{0}.htm'>{1}</a></span>&nbsp;",Order,HttpUtility.UrlEncode(GetText("..."))),
									"",string.Format("<span class='page_none grey10'><a href='/knowledge/allContributions-$I$-{0}.htm'>{1}</a></span>&nbsp;",Order,HttpUtility.UrlEncode(GetText("..."))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;",PageIndex),
									string.Format("<span class='page_none grey10'><a href='/knowledge/allContributions-$I$-{0}.htm'>$I$</a></span>&nbsp;",Order))%>
								</div>
							</div>
						</div>
					</div>
					<div class="Center9001Left">
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("WK010")%></h4>
								<div class="layer_contentA5">
									<asp:Repeater ID="rptL" runat="server">
										<ItemTemplate>
											<div class="margin10">
												<div class="pic50 floatl wid65"><a class="photo_50" href="/<%#Eval("Username") %>.htm" title="<%#Eval("NickName") %>"><%#Eval("Image").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" border=\"0\"/>" : Eval("Image", "<img src=\"{0}\" border=\"0\"/>").ToString()%></a></div>
												<div class="floatr wid120"><a href="/<%#Eval("Username") %>.htm"><%#HttpUtility.HtmlEncode(Eval("NickName").ToString())%></a><br /><%#HttpUtility.HtmlEncode(Eval("ConCreatores").ToString())%> <%=GetText("WK003")%></div>
												<div class="clear"></div>
											</div>
										</ItemTemplate>
									</asp:Repeater>
									<%if (rptL.Items.Count == 0){%>
									<span class="grey12"><%=GetText("WK005")%></span>
									<%} %>
									<%if (rptL.Items.Count > 0){%>
									<p align="right"><a href="/knowledge/allContributors.htm"><%=GetText("C0040")%></a></p>
									<%} %>
								</div>
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA"><img src="/Images/icon_tips.gif" align="absmiddle" /> <strong><a href="/knowledge/wiki-How+to+edit+the+italki+wiki1.htm">How do I edit italki wiki?</a></strong></div>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>